FMI Table
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 2 | Project Topic 7 |
Pair.hpp
Go to the documentation of this file.
1#ifndef PAIR
2#define PAIR
3
12template <typename T, typename U>
13struct Pair {
14 T left;
15 U right;
16
17 Pair();
18 Pair(const T& left, const U& right);
19};
20
21template <typename T, typename U>
22Pair<T, U>::Pair() : left(), right() {}
23
24
25template <typename T, typename U>
26Pair<T, U>::Pair(const T& left, const U& right) : left(left), right(right) {}
27
28#endif
Stores two values of any types.
Definition: Pair.hpp:13